﻿namespace Example
{
    using System;

    using Cavity;

    using Xunit;

    [Comment("http://timespan2.codeplex.com/documentation")]
    public sealed class TimeSpan2Facts
    {
        [Fact]
        public void op_ToString_string()
        {
            const string expected = "3h 2m 1s";
            var actual = new TimeSpan2(3, 2, 1).ToString("j");

            Assert.Equal(expected, actual);
        }
    }
}